package avicit.cbb.techclass.tabledefine.commtablemanager.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.domain.BeanBase;
import avicit.platform6.core.properties.PlatformConstant.LogType;

/**
 * bean CbbTabColCode Title: 表CBB_TAB_COL_CODE的PoJo类，也就是数据库映射类 Description: 代码维护
 * Copyriht: Copyright (c) 2012 Company: AVICIT Co., Ltd
 * 
 * @author AVICIT DEV
 * @version 1.0 Date: 2014-09-16 10:40
 * 
 */
@Entity
@Table(name = "CBB_TAB_COL_CODE")
public class CbbTabColCode extends BeanBase {

	private static final long serialVersionUID = 1L;

	@LogField
	@FieldRemark(column = "ID", field = "id", name = "代码维护ID")
	private String id; // 主键
	@LogField
	@FieldRemark(column = "TABLE_ID", field = "tableId", name = "表ID")
	private String tableId; // 表ID
	@LogField
	@FieldRemark(column = "COLUMN_ID", field = "columnId", name = "列ID")
	private String columnId; // 列ID
	@LogField
	@FieldRemark(column = "CODE_ORDER", field = "codeOrder", name = "顺序")
	private java.math.BigDecimal codeOrder; // 顺序
	@LogField
	@FieldRemark(column = "LOOKUP_NAME", field = "lookupName", name = "显示值")
	private String lookupName; // 显示值
	@LogField
	@FieldRemark(column = "LOOKUP_CODE", field = "lookupCode", name = "真实值")
	private String lookupCode; // 真实值；手动输入，默认与显示值一样
	@LogField
	@FieldRemark(column = "CODE_IS_VALID", field = "codeIsValid", name = "是否有效")
	private String codeIsValid; // 是否有效；Y-有效，N-无效
	@LogField
	@FieldRemark(column = "REMARK", field = "remark", name = "说明")
	private String remark; // 说明
	private String orgId; // 组织ID
	private String deptId; // 部门ID
	private String sysId; // 系统标识ID
	private String secretLevel; // 密级
	private String sysApplicationId; // 多应用ID
	private String attribute01; // 预留字段1
	private String attribute02; // 预留字段2
	private String attribute03; // 预留字段3
	private String attribute04; // 预留字段4
	private String attribute05; // 预留字段5
	private String attribute06; // 预留字段6
	private String attribute07; // 预留字段7
	private String attribute08; // 预留字段8
	private java.util.Date attribute09; // 预留字段9
	private java.util.Date attribute10; // 预留字段10
	private java.math.BigDecimal attribute11; // 预留字段11
	private java.math.BigDecimal attribute12; // 预留字段12
	private java.math.BigDecimal attribute13; // 预留字段13
	private java.math.BigDecimal attribute14; // 预留字段14
	private java.math.BigDecimal attribute15; // 预留字段15

	@Id
	@Column(name = "ID", length = 50, nullable = false)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "TABLE_ID", length = 50, nullable = false)
	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}

	@Column(name = "COLUMN_ID", length = 50, nullable = false)
	public String getColumnId() {
		return columnId;
	}

	public void setColumnId(String columnId) {
		this.columnId = columnId;
	}

	@Column(name = "CODE_ORDER", nullable = false)
	public java.math.BigDecimal getCodeOrder() {
		return codeOrder;
	}

	public void setCodeOrder(java.math.BigDecimal codeOrder) {
		this.codeOrder = codeOrder;
	}

	@Column(name = "LOOKUP_NAME", length = 128, nullable = false)
	public String getLookupName() {
		return lookupName;
	}

	public void setLookupName(String lookupName) {
		this.lookupName = lookupName;
	}

	@Column(name = "LOOKUP_CODE", length = 128, nullable = false)
	public String getLookupCode() {
		return lookupCode;
	}

	public void setLookupCode(String lookupCode) {
		this.lookupCode = lookupCode;
	}

	@Column(name = "CODE_IS_VALID", length = 2, nullable = false)
	public String getCodeIsValid() {
		return codeIsValid;
	}

	public void setCodeIsValid(String codeIsValid) {
		this.codeIsValid = codeIsValid;
	}

	@Column(name = "REMARK", length = 255)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "ORG_ID", length = 50, nullable = false)
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name = "DEPT_ID", length = 50, nullable = false)
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	@Column(name = "SYS_ID", length = 50)
	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	@Column(name = "SECRET_LEVEL", length = 50)
	public String getSecretLevel() {
		return secretLevel;
	}

	public void setSecretLevel(String secretLevel) {
		this.secretLevel = secretLevel;
	}

	@Column(name = "SYS_APPLICATION_ID", length = 50)
	public String getSysApplicationId() {
		return sysApplicationId;
	}

	public void setSysApplicationId(String sysApplicationId) {
		this.sysApplicationId = sysApplicationId;
	}

	@Column(name = "ATTRIBUTE_01", length = 255)
	public String getAttribute01() {
		return attribute01;
	}

	public void setAttribute01(String attribute01) {
		this.attribute01 = attribute01;
	}

	@Column(name = "ATTRIBUTE_02", length = 255)
	public String getAttribute02() {
		return attribute02;
	}

	public void setAttribute02(String attribute02) {
		this.attribute02 = attribute02;
	}

	@Column(name = "ATTRIBUTE_03", length = 255)
	public String getAttribute03() {
		return attribute03;
	}

	public void setAttribute03(String attribute03) {
		this.attribute03 = attribute03;
	}

	@Column(name = "ATTRIBUTE_04", length = 255)
	public String getAttribute04() {
		return attribute04;
	}

	public void setAttribute04(String attribute04) {
		this.attribute04 = attribute04;
	}

	@Column(name = "ATTRIBUTE_05", length = 255)
	public String getAttribute05() {
		return attribute05;
	}

	public void setAttribute05(String attribute05) {
		this.attribute05 = attribute05;
	}

	@Column(name = "ATTRIBUTE_06", length = 255)
	public String getAttribute06() {
		return attribute06;
	}

	public void setAttribute06(String attribute06) {
		this.attribute06 = attribute06;
	}

	@Column(name = "ATTRIBUTE_07", length = 255)
	public String getAttribute07() {
		return attribute07;
	}

	public void setAttribute07(String attribute07) {
		this.attribute07 = attribute07;
	}

	@Column(name = "ATTRIBUTE_08", length = 255)
	public String getAttribute08() {
		return attribute08;
	}

	public void setAttribute08(String attribute08) {
		this.attribute08 = attribute08;
	}

	@Column(name = "ATTRIBUTE_09")
	public java.util.Date getAttribute09() {
		return attribute09;
	}

	public void setAttribute09(java.util.Date attribute09) {
		this.attribute09 = attribute09;
	}

	@Column(name = "ATTRIBUTE_10")
	public java.util.Date getAttribute10() {
		return attribute10;
	}

	public void setAttribute10(java.util.Date attribute10) {
		this.attribute10 = attribute10;
	}

	@Column(name = "ATTRIBUTE_11")
	public java.math.BigDecimal getAttribute11() {
		return attribute11;
	}

	public void setAttribute11(java.math.BigDecimal attribute11) {
		this.attribute11 = attribute11;
	}

	@Column(name = "ATTRIBUTE_12")
	public java.math.BigDecimal getAttribute12() {
		return attribute12;
	}

	public void setAttribute12(java.math.BigDecimal attribute12) {
		this.attribute12 = attribute12;
	}

	@Column(name = "ATTRIBUTE_13")
	public java.math.BigDecimal getAttribute13() {
		return attribute13;
	}

	public void setAttribute13(java.math.BigDecimal attribute13) {
		this.attribute13 = attribute13;
	}

	@Column(name = "ATTRIBUTE_14")
	public java.math.BigDecimal getAttribute14() {
		return attribute14;
	}

	public void setAttribute14(java.math.BigDecimal attribute14) {
		this.attribute14 = attribute14;
	}

	@Column(name = "ATTRIBUTE_15")
	public java.math.BigDecimal getAttribute15() {
		return attribute15;
	}

	public void setAttribute15(java.math.BigDecimal attribute15) {
		this.attribute15 = attribute15;
	}

	/**
	 * TODO 获取日志表单名称
	 * @return 
	 * @throws
	 */
	@Transient
	public String getLogFormName() {
		if (super.logFormName == null || super.logFormName.equals("")) {
			return "代码维护模块";
		} else {
			return super.logFormName;
		}
	}

	/**
	 * TODO 获取日志标题
	 * @return 
	 * @throws
	 */
	@Transient
	public String getLogTitle() {
		if (super.logTitle == null || super.logTitle.equals("")) {
			return "代码维护模块";
		} else {
			return super.logTitle;
		}
	}

	/**
	 * TODO 获取日志类型
	 * @return 
	 * @throws
	 */
	@Transient
	public LogType getLogType() {
		if (super.logType == null || super.logType.toString().equals("")) {
			return LogType.module_operate;
		} else {
			return super.logType;
		}
	}

}
